/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务员奖励记录表(待定)
 *
 * @author proj code generator
 * @date 2021-02-01 19:00:17
 */
@Data
@TableName("fx_reward")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "服务员奖励记录表(待定)")
public class FxReward extends Model<FxReward> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
	/**
	 * 公司id
	 */
	@ApiModelProperty(value="公司id")
	private Long companyId;
	/**
	 * 品牌id
	 */
	@ApiModelProperty(value="品牌id")
	private Long brandId;
	/**
	 * 门店id
	 */
	@ApiModelProperty(value="门店id")
	private Long shopId;
	/**
	 * 服务员id
	 */
	@ApiModelProperty(value="服务员id")
	private Long waiterId;
    /**
     * 奖励类型0注册1转发2核销
     */
    @ApiModelProperty(value="奖励类型0注册1转发2核销")
    private Integer type;
    /**
     * 金额
     */
    @ApiModelProperty(value="金额")
    private BigDecimal money;
    @ApiModelProperty(value="核销金额（冗余字段）")
    private BigDecimal useMoney;
    /**
     * 目标ID（根据type类型 连表查询）
     */
    @ApiModelProperty(value="目标ID（根据type类型 连表查询）")
    private Long tatId;
    /**
     * 饭友ID（C端用户）
     */
    @ApiModelProperty(value="饭友ID（C端用户）")
    private Long fyId;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;

    }
